﻿using System;
using JinianNet.JNCms.Models;
using System.Collections.Generic;

namespace JinianNet.JNCms.Data
{
    public interface IClassify
    {
        int Insert(Classify model);
        int Update(Classify model);
        int Delete(int id);
        //int UpdateCount(string item, int number);
        List<Classify> GetList(int parent, int classType);
        Classify GetItem(int id);
    }
    public partial class DataAccess
    {
        public static IClassify CreateClassify()
        {
            return (IClassify)CreateObject(".Classify");
        }
    }
}
